---------------------------------------------------------------------------
OverflowError Traceback (most recent call last)
<ipython-input-10-b7a8d7b004d2> in <module>()
5 for mu in [-0.01, 0, 1, 10]:
6 figure()
----> 7 plot(polyconverge(3, mu, 500))
8 ylim( (0,10) )
/Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/matplotlib/pyplot.pyc in plot(*args, **kwargs)
2813 ax.hold(hold)
2814 try:
-> 2815 ret = ax.plot(*args, **kwargs)
2816 draw_if_interactive()
2817 finally:
/Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/matplotlib/axes.pyc in plot(self, *args, **kwargs)
3995 lines.append(line)
3996
-> 3997 self.autoscale_view(scalex=scalex, scaley=scaley)
3998 return lines
3999
/Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/matplotlib/axes.pyc in autoscale_view(self, tight, scalex, scaley)
1963 y1 += delta
1964 if not _tight:
-> 1965 y0, y1 = ylocator.view_limits(y0, y1)
1966 self.set_ybound(y0, y1)
1967
/Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/matplotlib/ticker.pyc in view_limits(self, dmin, dmax)
1282 dmin, dmax = mtransforms.nonsingular(dmin, dmax, expander = 1e-12,
1283 tiny=1.e-13)
-> 1284 return np.take(self.bin_boundaries(dmin, dmax), [0,-1])
1285
1286
/Library/Python/2.7/site-packages/matplotlib-1.3.x-py2.7-macosx-10.8-intel.egg/matplotlib/ticker.pyc in bin_boundaries(self, vmin, vmax)
1254 break
1255 if self._trim:
-> 1256 extra_bins = int(divmod((best_vmax - vmax), step)[0])
1257 nbins -= extra_bins
1258 return (np.arange(nbins+1) * step + best_vmin + offset)
OverflowError: cannot convert float infinity to integer